<!DOCTYPE html>
<html class="x-admin-sm">
  <head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="__ADMIN__/css/font.css">
    <link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
    <script type="text/javascript" src="__ADMIN__/js/jquery.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/cookie.js"></script>
    <style>
        .layui-form-item .layui-form-label{
            width: 120px;
        }
        .layui-form-item .layui-textarea{
            width: 190px;
        }
        .layui-rate{
          padding-top: 0 !important
        }
    </style>
    <script type="text/javascript">

  </script>
  </head>
  
  <body>
    <div class="x-body">
          <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
            <legend>业务信息</legend>
          </fieldset>
          <input type="hidden" name="id" value="{$clientInfo.id}" />
          <div class="layui-form-item">
              <label class="layui-form-label">
                 赛事名称
              </label>
              <label class="layui-form-label" style="text-align:left;">
                  {$clientInfo.activity}
              </label>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">
                 赛事时间
              </label>
              <label class="layui-form-label" style="text-align:left;">
                  {$clientInfo.activity_time}
              </label>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">
                 客户
              </label>
              <label class="layui-form-label" style="text-align:left;">
                  {$clientInfo.name}
              </label>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">
                 客户联系方式
              </label>
              <label class="layui-form-label" style="text-align:left;">
                  手机：{$clientInfo.phone}
                  <br>微信：{$clientInfo.wx}
              </label>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">
                 签单业务员<br>签单时间
              </label>
              <label class="layui-form-label" style="text-align:left;">
                  {:idToAdminname($clientInfo['baoA_aid'])}
                  <br>{$clientInfo.qiandan_time|date="Y-m-d ",###}
              </label>
          </div>
          <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
            <legend>回访信息</legend>
          </fieldset>
          <div class="layui-form-item">
              <label class="layui-form-label">
                 满意度
              </label>
              <label class="layui-form-label" style="width: 300px;text-align:left;">
                  <div id="score-div"></div>
              </label>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">
                 详细评价
              </label>
              <label class="layui-form-label" style="text-align:left;min-width:500px">
                  {$reviewInfo.content}
              </label>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">
                 建议及其他
              </label>
              <label class="layui-form-label" style="text-align:left;min-width:500px">
                  {$reviewInfo.other_content}
              </label>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">
                 回访人<br>回访时间
              </label>
              <label class="layui-form-label" style="text-align:left;">
                  {:idToAdminname($reviewInfo['admin_id'])}
                  <br>{$clientInfo.review_time|date="Y-m-d ",###}
              </label>
          </div>



    </div>
<script>
layui.use(['form','layer','laydate','upload','rate'], function(){
  $ = layui.jquery;
  var form = layui.form
  ,layer = layui.layer
  ,laydate = layui.laydate
  ,upload = layui.upload
  ,rate = layui.rate;


  rate.render({
    elem: '#score-div'
    ,value: '{$reviewInfo.score}'
    ,readonly: true
    ,text: true
    ,setText: function(value){ //自定义文本的回调
      var arrs = {
        '1': '非常不满意'
        ,'2': '不满意'
        ,'3': '一般'
        ,'4': '比较满意'
        ,'5': '非常满意'
      };
      this.span.text(arrs[value] || ( value + "星"));
    }
  });
});
</script>
  </body>

</html>